#ifndef ADATA_H
#define ADATA_H

#include <QList>
#include <free-cube/freecube.h>


namespace fc {
class AData
{
public:
    enum Type {k_adata_midi_3};

    AData(fc::TimeT time, Type type) : time_(time), type_(type) {}
    virtual ~AData(){}

    fc::TimeT time() const {return time_;}
    void setTime(fc::TimeT time) {time_ = time;}
    Type type() const {return type_;}
private:
    fc::TimeT time_;
    Type type_;
};

class DataList : public QList <AData*> {
public:
    DataList(){}
    inline void clear_all(){ qDeleteAll(*this); this->clear(); }
    ~DataList(){ clear_all(); }

};

}
#endif // ADATA_H
